package com.cunyme;

public class course {
	
	//course has 6 fields
	private String name;
	private String start_time;
	private String end_time;
	private String room;
	private String building;
	private String days;
	
	//was going to make constructor with values already but not necessary, left here just incase for future implementation
	//public course(String newName, String newStart_time, String newEnd_time, String newBuilding, Vector<String> newDays){
	
	public course(){
		name="N/A";
		start_time="N/A";
		end_time="N/A";
		room="N/A";
		building="N/A";
		days="N/A";
	}
	
	void setName(String newName){
		name=newName;
	}
	void setStart(String newStart){
		start_time=newStart;
	}
	void setEnd(String newEnd){
		end_time=newEnd;
	}
	void setRoom(String newRoom){
		room=newRoom;
	}
	void setBuilding(String newBuilding){
		building=newBuilding;
	}
	void setDays(String newDay){
		if(getDays().equals("N/A")){
			days=newDay;
		}
		else{
			days= days+ ", " + newDay;
		}

	}
	public String getName(){
		return name;
	}
	public String getStart(){
		return start_time;
	}
	public String getEnd(){
		return end_time;
	}
	public String getRoom(){
		return room;
	}
	public String getBuilding(){
		return building;
	}
	public String getDays(){
		return days;
	}

}
